summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/2010-07-15-Crash.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/2010-07-15-Crash.ll')
-rw-r--r--test/CodeGen/X86/2010-07-15-Crash.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2010-07-15-Crash.ll b/test/CodeGen/X86/2010-07-15-Crash.ll
new file mode 100644
index 0000000..3ac4cf5
--- /dev/null
+++ b/test/CodeGen/X86/2010-07-15-Crash.ll
@@ -0,0 +1,12 @@
+; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s -o /dev/null
+; PR7653
+
+@__FUNCTION__.1623 = external constant [4 x i8] ; <[4 x i8]*> [#uses=1]
+
+define void @foo() nounwind {
+entry:
+ tail call void asm sideeffect "", "s,i,~{fpsr},~{flags}"(i8* getelementptr
+inbounds ([4 x i8]* @__FUNCTION__.1623, i64 0, i64 0), i8* getelementptr
+inbounds ([4 x i8]* @__FUNCTION__.1623, i64 0, i64 0)) nounwind
+ ret void
+}
OpenPOWER on IntegriCloud