diff options
Diffstat (limited to 'test/CodeGen/XCore')
-rw-r--r-- | test/CodeGen/XCore/zextfree.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/zextfree.ll b/test/CodeGen/XCore/zextfree.ll new file mode 100644 index 0000000000..48dce88653 --- /dev/null +++ b/test/CodeGen/XCore/zextfree.ll @@ -0,0 +1,15 @@ +; RUN: llc -march=xcore < %s | FileCheck %s + +; CHECK-LABEL: test: +; CHECK-NOT: zext +define void @test(i8* %s1) { +entry: + %u8 = load i8* %s1, align 1 + %bool = icmp eq i8 %u8, 0 + br label %BB1 +BB1: + br i1 %bool, label %BB1, label %BB2 +BB2: + br i1 %bool, label %BB1, label %BB2 +} + |