1 ; Reassociation should apply to Add, Mul, And, Or, & Xor
3 ; RUN: llvm-as < %s | opt -reassociate -constprop -instcombine -die | llvm-dis | not grep 12
5 int "test_mul"(int %arg) {
6 %tmp1 = mul int 12, %arg
7 %tmp2 = mul int %tmp1, 12
11 int "test_and"(int %arg) {
12 %tmp1 = and int 14, %arg
13 %tmp2 = and int %tmp1, 14
17 int "test_or"(int %arg) {
18 %tmp1 = or int 14, %arg
19 %tmp2 = or int %tmp1, 14
23 int "test_xor"(int %arg) {
24 %tmp1 = xor int 12, %arg
25 %tmp2 = xor int %tmp1, 12