diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-05-19 20:38:21 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-05-19 20:38:21 +0000 |
commit | 60abcb786e8ff401e7d925d717e725d4a3d925b5 (patch) | |
tree | 44fbe753c2e51718030189cc9cded87d2395e256 /test/CodeGen/SPARC | |
parent | 2ed2ad00f9b54e015bc38ece1492eec50163dd9a (diff) | |
download | llvm-60abcb786e8ff401e7d925d717e725d4a3d925b5.tar.gz llvm-60abcb786e8ff401e7d925d717e725d4a3d925b5.tar.bz2 llvm-60abcb786e8ff401e7d925d717e725d4a3d925b5.tar.xz |
Select i64 values with %icc conditions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC')
-rw-r--r-- | test/CodeGen/SPARC/64cond.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/64cond.ll b/test/CodeGen/SPARC/64cond.ll index c19da23766..0c025b36e3 100644 --- a/test/CodeGen/SPARC/64cond.ll +++ b/test/CodeGen/SPARC/64cond.ll @@ -55,6 +55,17 @@ entry: ret i64 %rv } +; CHECK: selecti64_icc +; CHECK: subcc %i0, %i1 +; CHECK: movg %icc, %i2, %i3 +; CHECK: or %g0, %i3, %i0 +define i64 @selecti64_icc(i32 %x, i32 %y, i64 %a, i64 %b) { +entry: + %tobool = icmp sgt i32 %x, %y + %rv = select i1 %tobool, i64 %a, i64 %b + ret i64 %rv +} + ; CHECK: selecti64_fcc ; CHECK: fcmps %f1, %f3 ; CHECK: movul %fcc0, %i2, %i3 |