diff options
Diffstat (limited to 'test/CodeGen/PowerPC/setcc_no_zext.ll')
-rw-r--r-- | test/CodeGen/PowerPC/setcc_no_zext.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/setcc_no_zext.ll b/test/CodeGen/PowerPC/setcc_no_zext.ll new file mode 100644 index 0000000..00e9bf0 --- /dev/null +++ b/test/CodeGen/PowerPC/setcc_no_zext.ll @@ -0,0 +1,8 @@ +; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep rlwinm + +int %setcc_one_or_zero(int* %a) { +entry: + %tmp.1 = setne int* %a, null + %inc.1 = cast bool %tmp.1 to int + ret int %inc.1 +} |