1 ; RUN: FileCheck -input-file %s %s 2 3 add r10, r1, r2 4 add r11, r3, r4 5 mul r5, r10, r11 6 7 mul r11, r3, r4 8 mul r10, r1, r2 9 add r5, r10, r11 10 11 add r11, r3, r4 12 add r10, r1, r2 13 mul r5, r10, r11 14 15 ; CHECK-DAG: add [[REG1:r[0-9]+]], r1, r2 16 ; CHECK-DAG: add [[REG2:r[0-9]+]], r3, r4 17 ; CHECK: mul r5, [[REG1]], [[REG2]] 18 19 ; CHECK-DAG: mul [[REG1:r[0-9]+]], r1, r2 20 ; CHECK-DAG: mul [[REG2:r[0-9]+]], r3, r4 21 ; CHECK: add r5, [[REG1]], [[REG2]] 22 23 ; CHECK-DAG: add [[REG1:r[0-9]+]], r1, r2 24 ; CHECK-DAG: add [[REG2:r[0-9]+]], r3, r4 25 ; CHECK-NOT: xor 26 ; CHECK-DAG: mul r5, [[REG1]], [[REG2]] 27