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 | ; |
Chris Lattner | a479fec | 2002-08-02 19:59:20 +0000 | [diff] [blame^] | 4 | ; RUN: as < %s | opt -instcombine -die | dis | grep '%c' |
Chris Lattner | ab3aeb7 | 2002-08-02 19:54:05 +0000 | [diff] [blame] | 5 | ; |
Chris Lattner | a1651c7 | 2002-08-02 18:46:53 +0000 | [diff] [blame] | 6 | ulong %test3(ulong %A) { |
Chris Lattner | ab3aeb7 | 2002-08-02 19:54:05 +0000 | [diff] [blame] | 7 | %c1 = cast ulong %A to ubyte |
| 8 | %c2 = cast ubyte %c1 to ulong |
Chris Lattner | a479fec | 2002-08-02 19:59:20 +0000 | [diff] [blame^] | 9 | ret ulong %c2 |
Chris Lattner | a1651c7 | 2002-08-02 18:46:53 +0000 | [diff] [blame] | 10 | } |
| 11 | |