summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/crash.ll
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-07 20:33:27 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-07 20:33:27 +0000
commitf2e4afd96c9d26ff0dd2fb5eca0a94207d2a8fb4 (patch)
treea8fbf387bf71a69cfc3ca03fbccdce12cb56d692 /test/CodeGen/X86/crash.ll
parent894728211d042c8005516c6e9ecc35e7a39b7cc3 (diff)
downloadllvm-f2e4afd96c9d26ff0dd2fb5eca0a94207d2a8fb4.tar.gz
llvm-f2e4afd96c9d26ff0dd2fb5eca0a94207d2a8fb4.tar.bz2
llvm-f2e4afd96c9d26ff0dd2fb5eca0a94207d2a8fb4.tar.xz
Allow copies between GR8_ABCD_L and GR8_ABCD_H.
This fixes PR7540. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/crash.ll')
-rw-r--r--test/CodeGen/X86/crash.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/crash.ll b/test/CodeGen/X86/crash.ll
index 2f27f35f0a..a14a48baa3 100644
--- a/test/CodeGen/X86/crash.ll
+++ b/test/CodeGen/X86/crash.ll
@@ -130,3 +130,14 @@ bb14:
bb67:
ret void
}
+
+; Crash when trying to copy AH to AL.
+; PR7540
+define void @copy8bitregs() nounwind {
+entry:
+ %div.i = sdiv i32 115200, 0
+ %shr8.i = lshr i32 %div.i, 8
+ %conv4.i = trunc i32 %shr8.i to i8
+ call void asm sideeffect "outb $0, ${1:w}", "{ax},N{dx},~{dirflag},~{fpsr},~{flags}"(i8 %conv4.i, i32 1017) nounwind
+ unreachable
+}