2009-09-11 18:36:27 +00:00
|
|
|
; RUN: llc < %s -march=cellspu | FileCheck %s
|
2009-08-24 22:28:53 +00:00
|
|
|
|
|
|
|
; ModuleID = 'sext128.bc'
|
|
|
|
target datalayout = "E-p:32:32:128-i1:8:128-i8:8:128-i16:16:128-i32:32:128-i64:32:128-f32:32:128-f64:64:128-v64:128:128-v128:128:128-a0:0:128-s0:128:128"
|
|
|
|
target triple = "spu"
|
|
|
|
|
|
|
|
define i128 @sext_i64_i128(i64 %a) {
|
|
|
|
entry:
|
2009-08-25 22:37:34 +00:00
|
|
|
%0 = sext i64 %a to i128
|
|
|
|
ret i128 %0
|
2009-08-24 22:49:22 +00:00
|
|
|
; CHECK: long 269488144
|
|
|
|
; CHECK: long 269488144
|
2009-08-25 22:37:34 +00:00
|
|
|
; CHECK: long 66051
|
|
|
|
; CHECK: long 67438087
|
2009-08-24 22:49:22 +00:00
|
|
|
; CHECK: rotmai
|
|
|
|
; CHECK: lqa
|
|
|
|
; CHECK: shufb
|
2009-08-25 22:37:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i128 @sext_i32_i128(i32 %a) {
|
|
|
|
entry:
|
|
|
|
%0 = sext i32 %a to i128
|
2009-08-24 22:28:53 +00:00
|
|
|
ret i128 %0
|
2009-08-25 22:37:34 +00:00
|
|
|
; CHECK: long 269488144
|
|
|
|
; CHECK: long 269488144
|
|
|
|
; CHECK: long 269488144
|
|
|
|
; CHECK: long 66051
|
|
|
|
; CHECK: rotmai
|
|
|
|
; CHECK: lqa
|
|
|
|
; CHECK: shufb
|
2009-08-24 22:28:53 +00:00
|
|
|
}
|
2009-08-25 22:37:34 +00:00
|
|
|
|
|
|
|
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)
|