2013-09-12 22:02:31 +00:00
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2014-08-19 21:08:27 +00:00
; RUN: verify-uselistorder < %s
2013-09-12 22:02:31 +00:00
define < 2 x i32 > @main ( ) {
ret < 2 x i32 > select ( < 2 x i1 > < i1 false , i1 undef > , < 2 x i32 > zeroinitializer , < 2 x i32 > < i32 0 , i32 undef > )
}
; CHECK: define <2 x i32> @main() {
2013-12-31 19:30:47 +00:00
; CHECK: ret <2 x i32> <i32 0, i32 undef>
2013-09-12 22:02:31 +00:00
; CHECK: }
2015-08-31 18:00:30 +00:00
define < 2 x float > @f ( ) {
ret < 2 x float > select ( i1 ptrtoint ( < 2 x float > ( ) * @f to i1 ) , < 2 x float > < float 1.000000e+00 , float 0.000000e+00 > , < 2 x float > zeroinitializer )
}
; CHECK: define <2 x float> @f() {
; CHECK: ret <2 x float> select (i1 ptrtoint (<2 x float> ()* @f to i1), <2 x float> <float 1.000000e+00, float 0.000000e+00>, <2 x float> zeroinitializer)
; CHECK: }