1 // REQUIRES: mips-registered-target
2 // RUN: %clang_cc1 -triple mips-linux-gnu -emit-llvm -o - %s | FileCheck %s
3
4 int data;
5
m()6 void m () {
7 asm("lw $1, %0" :: "m"(data));
8 // CHECK: call void asm sideeffect "lw $$1, $0", "*m,~{$1}"(i32* @data)
9 }
10
ZC()11 void ZC () {
12 asm("ll $1, %0" :: "ZC"(data));
13 // CHECK: call void asm sideeffect "ll $$1, $0", "*^ZC,~{$1}"(i32* @data)
14 }
15
R()16 void R () {
17 asm("lw $1, %0" :: "R"(data));
18 // CHECK: call void asm sideeffect "lw $$1, $0", "*R,~{$1}"(i32* @data)
19 }
20