Chris Lattner | a7a02fb | 2008-01-18 16:54:56 +0000 | [diff] [blame] | 1 | ; This cannot be a stfiwx |
Dan Gohman | fce288f | 2009-09-09 00:09:15 +0000 | [diff] [blame] | 2 | ; RUN: llc < %s -march=ppc32 -mcpu=g5 | grep stb |
3 | ; RUN: llc < %s -march=ppc32 -mcpu=g5 | not grep stfiwx | ||||
Chris Lattner | a7a02fb | 2008-01-18 16:54:56 +0000 | [diff] [blame] | 4 | |
5 | define void @test(float %F, i8* %P) { | ||||
6 | %I = fptosi float %F to i32 | ||||
7 | %X = trunc i32 %I to i8 | ||||
8 | store i8 %X, i8* %P | ||||
9 | ret void | ||||
10 | } | ||||
11 |