aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/inline-asm-q-regs.ll
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-12-01 08:12:41 +0000
committerEric Christopher <echristo@apple.com>2011-12-01 08:12:41 +0000
commit7d5a61e975260d01bb2079b5dcb9c93b76a4734d (patch)
tree8a61a999a51368391703a6fb28ab407b57d71e55 /test/CodeGen/X86/inline-asm-q-regs.ll
parent0becc96b243da058f6d8901128b173d192db5148 (diff)
downloadexternal_llvm-7d5a61e975260d01bb2079b5dcb9c93b76a4734d.zip
external_llvm-7d5a61e975260d01bb2079b5dcb9c93b76a4734d.tar.gz
external_llvm-7d5a61e975260d01bb2079b5dcb9c93b76a4734d.tar.bz2
For 64-bit the rest of the general regs are ok for the q constraint. Make
sure we can emit both the high and low versions of those registers. Fixes rdar://10392864 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145579 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/inline-asm-q-regs.ll')
-rw-r--r--test/CodeGen/X86/inline-asm-q-regs.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/inline-asm-q-regs.ll b/test/CodeGen/X86/inline-asm-q-regs.ll
index 1c8e2f9..617bd39 100644
--- a/test/CodeGen/X86/inline-asm-q-regs.ll
+++ b/test/CodeGen/X86/inline-asm-q-regs.ll
@@ -20,3 +20,10 @@ define void @test3(double %tmp) nounwind {
call void asm sideeffect "$0", "q"(double %tmp) nounwind
ret void
}
+
+; rdar://10392864
+define void @test4(i8 signext %val, i8 signext %a, i8 signext %b, i8 signext %c, i8 signext %d) nounwind {
+entry:
+ %0 = tail call { i8, i8, i8, i8, i8 } asm "foo $1, $2, $3, $4, $1\0Axchgb ${0:b}, ${0:h}", "=q,={ax},={bx},={cx},={dx},0,1,2,3,4,~{dirflag},~{fpsr},~{flags}"(i8 %val, i8 %a, i8 %b, i8 %c, i8 %d) nounwind
+ ret void
+}