Chris Lattner | a1651c7 | 2002-08-02 18:46:53 +0000 | [diff] [blame] | 1 | ; This testcase is incorrectly getting completely eliminated. There should be |
| 2 | ; SOME instruction named %c here, even if it's a bitwise and. |
| 3 | ; |
Dan Gohman | 1880092 | 2009-09-11 18:01:28 +0000 | [diff] [blame] | 4 | ; RUN: opt < %s -instcombine -S | grep %c |
Chris Lattner | ab3aeb7 | 2002-08-02 19:54:05 +0000 | [diff] [blame] | 5 | ; |
Tanya Lattner | 5640bd1 | 2008-03-01 09:15:35 +0000 | [diff] [blame] | 6 | define i64 @test3(i64 %A) { |
| 7 | %c1 = trunc i64 %A to i8 ; <i8> [#uses=1] |
| 8 | %c2 = zext i8 %c1 to i64 ; <i64> [#uses=1] |
| 9 | ret i64 %c2 |
Chris Lattner | a1651c7 | 2002-08-02 18:46:53 +0000 | [diff] [blame] | 10 | } |
| 11 | |