diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-05-20 00:28:36 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-05-20 00:28:36 +0000 |
commit | 900622e099054da4a213074581d8501ac27e7ea7 (patch) | |
tree | d74b160cb78607eb74fa08fdc1a5858ffe949ca4 /test/CodeGen/SPARC | |
parent | 4dc8bdf87d402ad8c91d9a72777d9576c5461e40 (diff) | |
download | external_llvm-900622e099054da4a213074581d8501ac27e7ea7.zip external_llvm-900622e099054da4a213074581d8501ac27e7ea7.tar.gz external_llvm-900622e099054da4a213074581d8501ac27e7ea7.tar.bz2 |
Mark i64 SETCC as expand so it is turned into a SELECT_CC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC')
-rw-r--r-- | test/CodeGen/SPARC/64bit.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/64bit.ll b/test/CodeGen/SPARC/64bit.ll index dd6cee3..e10237b 100644 --- a/test/CodeGen/SPARC/64bit.ll +++ b/test/CodeGen/SPARC/64bit.ll @@ -191,3 +191,13 @@ entry: } declare void @g(i8*) + +; CHECK: expand_setcc +; CHECK: subcc %i0, 1, +; CHECK: movl %xcc, 1, +define i32 @expand_setcc(i64 %a) { + %cond = icmp sle i64 %a, 0 + %cast2 = zext i1 %cond to i32 + %RV = sub i32 1, %cast2 + ret i32 %RV +} |