2017-08-02 08:28:10 +08:00
|
|
|
; RUN: llc < %s -mtriple=i686-- -mattr=-sse2,+sse | grep addps
|
2011-07-27 04:38:49 +08:00
|
|
|
|
2011-07-27 05:02:58 +08:00
|
|
|
; PR10497 + another isel issue with sse2 disabled
|
2011-07-27 04:38:49 +08:00
|
|
|
; (This is primarily checking that this construct doesn't crash.)
|
|
|
|
define void @a(<2 x float>* %a, <2 x i32>* %b) {
|
2015-02-28 05:17:42 +08:00
|
|
|
%cc = load <2 x float>, <2 x float>* %a
|
2011-07-27 04:38:49 +08:00
|
|
|
%c = fadd <2 x float> %cc, %cc
|
|
|
|
%dd = bitcast <2 x float> %c to <2 x i32>
|
|
|
|
%d = add <2 x i32> %dd, %dd
|
|
|
|
store <2 x i32> %d, <2 x i32>* %b
|
|
|
|
ret void
|
|
|
|
}
|