blob: 666d2960fb5f5b25d383a450babdc082bd47f8d7 [file] [log] [blame]
Joe Abbey405b6502013-09-12 22:02:31 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
Duncan P. N. Exon Smith13f5c582014-08-19 21:08:27 +00002; RUN: verify-uselistorder < %s
Joe Abbey405b6502013-09-12 22:02:31 +00003
4define <2 x i32> @main() {
5 ret <2 x i32> select (<2 x i1> <i1 false, i1 undef>, <2 x i32> zeroinitializer, <2 x i32> <i32 0, i32 undef>)
6}
7
8; CHECK: define <2 x i32> @main() {
Nick Lewycky99cebad2013-12-31 19:30:47 +00009; CHECK: ret <2 x i32> <i32 0, i32 undef>
Joe Abbey405b6502013-09-12 22:02:31 +000010; CHECK: }
Filipe Cabecinhas357ece42015-08-31 18:00:30 +000011
12define <2 x float> @f() {
13 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)
14}
15
16; CHECK: define <2 x float> @f() {
17; 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)
18; CHECK: }