summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2006-12-19-IntelSyntax.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-19 19:29:50 +0000
committerChris Lattner <sabre@nondot.org>2006-12-19 19:29:50 +0000
commitcbac0aa9eba5f2d41fcc83628487e41ec4e4a28e (patch)
tree0e52e82ec181f0576e6b48e14ba57bae5590a30d /test/CodeGen/X86/2006-12-19-IntelSyntax.ll
parentcd79df01c2ad40062d2cd75f40c55ac3ddd6fc54 (diff)
downloadllvm-cbac0aa9eba5f2d41fcc83628487e41ec4e4a28e.tar.gz
llvm-cbac0aa9eba5f2d41fcc83628487e41ec4e4a28e.tar.bz2
llvm-cbac0aa9eba5f2d41fcc83628487e41ec4e4a28e.tar.xz
testcase for pr1061
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2006-12-19-IntelSyntax.ll')
-rw-r--r--test/CodeGen/X86/2006-12-19-IntelSyntax.ll91
1 files changed, 91 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2006-12-19-IntelSyntax.ll b/test/CodeGen/X86/2006-12-19-IntelSyntax.ll
new file mode 100644
index 0000000000..b79700afd0
--- /dev/null
+++ b/test/CodeGen/X86/2006-12-19-IntelSyntax.ll
@@ -0,0 +1,91 @@
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel
+; PR1061
+
+target datalayout = "e-p:32:32"
+target endian = little
+target pointersize = 32
+target triple = "i686-pc-linux-gnu"
+
+implementation ; Functions:
+
+void %bar(uint %n) {
+entry:
+ switch uint %n, label %bb12 [
+ uint 1, label %bb
+ uint 2, label %bb6
+ uint 4, label %bb7
+ uint 5, label %bb8
+ uint 6, label %bb10
+ uint 7, label %bb1
+ uint 8, label %bb3
+ uint 9, label %bb4
+ uint 10, label %bb9
+ uint 11, label %bb2
+ uint 12, label %bb5
+ uint 13, label %bb11
+ ]
+
+bb: ; preds = %entry
+ call void (...)* %foo1( )
+ ret void
+
+bb1: ; preds = %entry
+ call void (...)* %foo2( )
+ ret void
+
+bb2: ; preds = %entry
+ call void (...)* %foo6( )
+ ret void
+
+bb3: ; preds = %entry
+ call void (...)* %foo3( )
+ ret void
+
+bb4: ; preds = %entry
+ call void (...)* %foo4( )
+ ret void
+
+bb5: ; preds = %entry
+ call void (...)* %foo5( )
+ ret void
+
+bb6: ; preds = %entry
+ call void (...)* %foo1( )
+ ret void
+
+bb7: ; preds = %entry
+ call void (...)* %foo2( )
+ ret void
+
+bb8: ; preds = %entry
+ call void (...)* %foo6( )
+ ret void
+
+bb9: ; preds = %entry
+ call void (...)* %foo3( )
+ ret void
+
+bb10: ; preds = %entry
+ call void (...)* %foo4( )
+ ret void
+
+bb11: ; preds = %entry
+ call void (...)* %foo5( )
+ ret void
+
+bb12: ; preds = %entry
+ call void (...)* %foo6( )
+ ret void
+}
+
+declare void %foo1(...)
+
+declare void %foo2(...)
+
+declare void %foo6(...)
+
+declare void %foo3(...)
+
+declare void %foo4(...)
+
+declare void %foo5(...)