summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorScott Michel <scottm@aero.org>2009-08-25 22:37:34 +0000
committerScott Michel <scottm@aero.org>2009-08-25 22:37:34 +0000
commit77f452d1a83054f0451ef8421297ffc8294f45dd (patch)
tree4129c4e7fbd3c3223c1aa2728d71163eb8066a68 /test/CodeGen
parent30f809196362b497eef743ef60acd0724e97654b (diff)
downloadllvm-77f452d1a83054f0451ef8421297ffc8294f45dd.tar.gz
llvm-77f452d1a83054f0451ef8421297ffc8294f45dd.tar.bz2
llvm-77f452d1a83054f0451ef8421297ffc8294f45dd.tar.xz
Updated i128 sext support for CellSPU backend, contributed by Ken Werner (IBM)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/CellSPU/sext128.ll35
1 files changed, 32 insertions, 3 deletions
diff --git a/test/CodeGen/CellSPU/sext128.ll b/test/CodeGen/CellSPU/sext128.ll
index 0cff87937b..71962a9425 100644
--- a/test/CodeGen/CellSPU/sext128.ll
+++ b/test/CodeGen/CellSPU/sext128.ll
@@ -6,13 +6,42 @@ target triple = "spu"
define i128 @sext_i64_i128(i64 %a) {
entry:
+ %0 = sext i64 %a to i128
+ ret i128 %0
; CHECK: long 269488144
; CHECK: long 269488144
-; CHECK: long 16909060
-; CHECK: long 84281096
+; CHECK: long 66051
+; CHECK: long 67438087
; CHECK: rotmai
; CHECK: lqa
; CHECK: shufb
- %0 = sext i64 %a to i128
+}
+
+define i128 @sext_i32_i128(i32 %a) {
+entry:
+ %0 = sext i32 %a to i128
ret i128 %0
+; CHECK: long 269488144
+; CHECK: long 269488144
+; CHECK: long 269488144
+; CHECK: long 66051
+; CHECK: rotmai
+; CHECK: lqa
+; CHECK: shufb
}
+
+define i128 @sext_i32_i128a(float %a) {
+entry:
+ %0 = call i32 @myfunc(float %a)
+ %1 = sext i32 %0 to i128
+ ret i128 %1
+; CHECK: long 269488144
+; CHECK: long 269488144
+; CHECK: long 269488144
+; CHECK: long 66051
+; CHECK: rotmai
+; CHECK: lqa
+; CHECK: shufb
+}
+
+declare i32 @myfunc(float)