aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/R600/si-annotate-cf-assertion.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/R600/si-annotate-cf-assertion.ll')
-rw-r--r--test/CodeGen/R600/si-annotate-cf-assertion.ll23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/CodeGen/R600/si-annotate-cf-assertion.ll b/test/CodeGen/R600/si-annotate-cf-assertion.ll
new file mode 100644
index 0000000..9886fe9
--- /dev/null
+++ b/test/CodeGen/R600/si-annotate-cf-assertion.ll
@@ -0,0 +1,23 @@
+; XFAIL: *
+; RUN: llc -march=r600 -mcpu=SI -asm-verbose=false < %s | FileCheck %s
+
+
+define void @test(i32 addrspace(1)* %g, i8 addrspace(3)* %l, i32 %x) nounwind {
+; CHECK-LABEL: @test:
+
+entry:
+ switch i32 %x, label %sw.default [
+ i32 0, label %sw.bb
+ i32 60, label %sw.bb
+ ]
+
+sw.bb:
+ unreachable
+
+sw.default:
+ unreachable
+
+sw.epilog:
+ ret void
+}
+