Reid Spencer | 69ccadd | 2006-12-02 04:23:10 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep cast |
Chris Lattner | 3c6d4b4 | 2004-03-08 06:17:15 +0000 | [diff] [blame] | 2 | ; All of these should be eliminable |
3 | |||||
4 | |||||
5 | int %foo() { | ||||
6 | ret int and (int cast (int()* %foo to int), int 1) | ||||
7 | } | ||||
8 | |||||
9 | int %foo2() { | ||||
10 | ret int and (int 1, int cast (int()* %foo2 to int)) | ||||
11 | } | ||||
12 | |||||
13 | bool %foo3() { | ||||
14 | ret bool cast (bool()* %foo3 to bool) | ||||
15 | } |