1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
2
3 // CHECK-LABEL: @t1
t1()4 void t1() {
5 __asm__ ("mov r8w, 100;");
6 // CHECK: call void asm sideeffect "mov r8w, 100;"
7 __asm__ ("mov r8d, 100;");
8 // CHECK: call void asm sideeffect "mov r8d, 100;"
9 __asm__ ("mov r8b, 100;");
10 // CHECK: call void asm sideeffect "mov r8b, 100;"
11 __asm__ ("mov r9w, 100;");
12 // CHECK: call void asm sideeffect "mov r9w, 100;"
13 __asm__ ("mov r9d, 100;");
14 // CHECK: call void asm sideeffect "mov r9d, 100;"
15 __asm__ ("mov r9b, 100;");
16 // CHECK: call void asm sideeffect "mov r9b, 100;"
17 __asm__ ("mov r10w, 100;");
18 // CHECK: call void asm sideeffect "mov r10w, 100;"
19 __asm__ ("mov r10d, 100;");
20 // CHECK: call void asm sideeffect "mov r10d, 100;"
21 __asm__ ("mov r10b, 100;");
22 // CHECK: call void asm sideeffect "mov r10b, 100;"
23 __asm__ ("mov r11w, 100;");
24 // CHECK: call void asm sideeffect "mov r11w, 100;"
25 __asm__ ("mov r11d, 100;");
26 // CHECK: call void asm sideeffect "mov r11d, 100;"
27 __asm__ ("mov r11b, 100;");
28 // CHECK: call void asm sideeffect "mov r11b, 100;"
29 __asm__ ("mov r12w, 100;");
30 // CHECK: call void asm sideeffect "mov r12w, 100;"
31 __asm__ ("mov r12d, 100;");
32 // CHECK: call void asm sideeffect "mov r12d, 100;"
33 __asm__ ("mov r12b, 100;");
34 // CHECK: call void asm sideeffect "mov r12b, 100;"
35 __asm__ ("mov r13w, 100;");
36 // CHECK: call void asm sideeffect "mov r13w, 100;"
37 __asm__ ("mov r13d, 100;");
38 // CHECK: call void asm sideeffect "mov r13d, 100;"
39 __asm__ ("mov r13b, 100;");
40 // CHECK: call void asm sideeffect "mov r13b, 100;"
41 __asm__ ("mov r14w, 100;");
42 // CHECK: call void asm sideeffect "mov r14w, 100;"
43 __asm__ ("mov r14d, 100;");
44 // CHECK: call void asm sideeffect "mov r14d, 100;"
45 __asm__ ("mov r14b, 100;");
46 // CHECK: call void asm sideeffect "mov r14b, 100;"
47 __asm__ ("mov r15w, 100;");
48 // CHECK: call void asm sideeffect "mov r15w, 100;"
49 __asm__ ("mov r15d, 100;");
50 // CHECK: call void asm sideeffect "mov r15d, 100;"
51 __asm__ ("mov r15b, 100;");
52 // CHECK: call void asm sideeffect "mov r15b, 100;"
53 }
54