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