1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -O2 %s -o - | FileCheck %s
3 // CHECK-LABEL: @test_r15
4 // CHECK: call void asm sideeffect "", "{r15},~{dirflag},~{fpsr},~{flags}"(i32 undef)
6 register int a
asm ("r15");
10 // CHECK-LABEL: @test_r16
11 // CHECK: call void asm sideeffect "", "{r16},~{dirflag},~{fpsr},~{flags}"(i32 undef)
13 register int a
asm ("r16");
17 // CHECK-LABEL: @test_r17
18 // CHECK: call void asm sideeffect "", "{r17},~{dirflag},~{fpsr},~{flags}"(i32 undef)
20 register int a
asm ("r17");
24 // CHECK-LABEL: @test_r18
25 // CHECK: call void asm sideeffect "", "{r18},~{dirflag},~{fpsr},~{flags}"(i32 undef)
27 register int a
asm ("r18");
31 // CHECK-LABEL: @test_r19
32 // CHECK: call void asm sideeffect "", "{r19},~{dirflag},~{fpsr},~{flags}"(i32 undef)
34 register int a
asm ("r19");
38 // CHECK-LABEL: @test_r20
39 // CHECK: call void asm sideeffect "", "{r20},~{dirflag},~{fpsr},~{flags}"(i32 undef)
41 register int a
asm ("r20");
45 // CHECK-LABEL: @test_r21
46 // CHECK: call void asm sideeffect "", "{r21},~{dirflag},~{fpsr},~{flags}"(i32 undef)
48 register int a
asm ("r21");
52 // CHECK-LABEL: @test_r22
53 // CHECK: call void asm sideeffect "", "{r22},~{dirflag},~{fpsr},~{flags}"(i32 undef)
55 register int a
asm ("r22");
59 // CHECK-LABEL: @test_r23
60 // CHECK: call void asm sideeffect "", "{r23},~{dirflag},~{fpsr},~{flags}"(i32 undef)
62 register int a
asm ("r23");
66 // CHECK-LABEL: @test_r24
67 // CHECK: call void asm sideeffect "", "{r24},~{dirflag},~{fpsr},~{flags}"(i32 undef)
69 register int a
asm ("r24");
73 // CHECK-LABEL: @test_r25
74 // CHECK: call void asm sideeffect "", "{r25},~{dirflag},~{fpsr},~{flags}"(i32 undef)
76 register int a
asm ("r25");
80 // CHECK-LABEL: @test_r26
81 // CHECK: call void asm sideeffect "", "{r26},~{dirflag},~{fpsr},~{flags}"(i32 undef)
83 register int a
asm ("r26");
87 // CHECK-LABEL: @test_r27
88 // CHECK: call void asm sideeffect "", "{r27},~{dirflag},~{fpsr},~{flags}"(i32 undef)
90 register int a
asm ("r27");
94 // CHECK-LABEL: @test_r28
95 // CHECK: call void asm sideeffect "", "{r28},~{dirflag},~{fpsr},~{flags}"(i32 undef)
97 register int a
asm ("r28");
101 // CHECK-LABEL: @test_r29
102 // CHECK: call void asm sideeffect "", "{r29},~{dirflag},~{fpsr},~{flags}"(i32 undef)
104 register int a
asm ("r29");
108 // CHECK-LABEL: @test_r30
109 // CHECK: call void asm sideeffect "", "{r30},~{dirflag},~{fpsr},~{flags}"(i32 undef)
111 register int a
asm ("r30");
115 // CHECK-LABEL: @test_r31
116 // CHECK: call void asm sideeffect "", "{r31},~{dirflag},~{fpsr},~{flags}"(i32 undef)
118 register int a
asm ("r31");