1 ; Various test cases to ensure basic functionality is working for GCSE
3 ; RUN: as < %s | opt -gcse
7 void "testinsts"(int %i, int %j, int* %p)
9 %A = cast int %i to uint
10 %B = cast int %i to uint
12 %C = shl int %i, ubyte 1
13 %D = shl int %i, ubyte 1
15 %E = getelementptr int* %p, long 12
16 %F = getelementptr int* %p, long 12
17 %G = getelementptr int* %p, long 13
22 ; Test different combinations of domination properties...
23 void "sameBBtest"(int %i, int %j)
35 int "dominates"(int %i, int %j)
45 int "hascommondominator"(int %i, int %j)
47 br bool true, label %BB1, label %BB2