diff options
Diffstat (limited to 'test/CodeGen/PowerPC/inverted-bool-compares.ll')
| -rw-r--r-- | test/CodeGen/PowerPC/inverted-bool-compares.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/inverted-bool-compares.ll b/test/CodeGen/PowerPC/inverted-bool-compares.ll new file mode 100644 index 000000000000..f8c5f11180ca --- /dev/null +++ b/test/CodeGen/PowerPC/inverted-bool-compares.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | llc -march=ppc32 | not grep xori + +define i32 @test(i1 %B, i32* %P) { + br i1 %B, label %T, label %F + +T: ; preds = %0 + store i32 123, i32* %P + ret i32 0 + +F: ; preds = %0 + ret i32 17 +} + |
