Home | History | Annotate | Download | only in FileCheck
      1 ; RUN: not FileCheck -check-prefix=X1 -input-file %s %s
      2 ; RUN: not FileCheck -check-prefix=X2 -input-file %s %s
      3 ; RUN: not FileCheck -check-prefix=X3 -input-file %s %s
      4 ; RUN: not FileCheck -check-prefix=X4 -input-file %s %s
      5 ; RUN: not FileCheck -check-prefix=X5 -input-file %s %s
      6 ; RUN: not FileCheck -check-prefix=X6 -input-file %s %s
      7 
      8 __x1
      9 add r10, r1, r2
     10 add r11, r3, r4
     11 mul r5, r10, r12
     12 __x1
     13 
     14 ; X1: __x1
     15 ; X1-DAG: add [[REG1:r[0-9]+]], r1, r2
     16 ; X1-DAG: add [[REG2:r[0-9]+]], r3, r4
     17 ; X1: mul r5, [[REG1]], [[REG2]]
     18 ; X1: __x1
     19 
     20 __x2
     21 mul r11, r3, r4
     22 mul r10, r1, r2
     23 add r5, r11, r11
     24 __x2
     25 
     26 ; X2: __x2
     27 ; X2-DAG: mul [[REG1:r[0-9]+]], r1, r2
     28 ; X2-DAG: mul [[REG2:r[0-9]+]], r3, r4
     29 ; X2: add r5, [[REG1]], [[REG2]]
     30 ; X2: __x2
     31 
     32 __x3
     33 add r11, r3, r4
     34 add r12, r1, r2
     35 mul r5, r10, r11
     36 __x3
     37 
     38 ; X3: __x3
     39 ; X3-DAG: add [[REG1:r[0-9]+]], r1, r2
     40 ; X3-DAG: add [[REG2:r[0-9]+]], r3, r4
     41 ; X3-DAG: mul r5, [[REG1]], [[REG2]]
     42 ; X3: __x3
     43 
     44 __x4
     45 add r11, r3, r4
     46 add r12, r1, r2
     47 not
     48 mul r5, r12, r11
     49 __x4
     50 
     51 ; X4: __x4
     52 ; X4-DAG: add [[REG1:r[0-9]+]], r1, r2
     53 ; X4-DAG: add [[REG2:r[0-9]+]], r3, r4
     54 ; X4-NOT: not
     55 ; X4-DAG: mul r5, [[REG1]], [[REG2]]
     56 ; X4: __x4
     57 
     58 __x5
     59 mul r5, r12, r11
     60 add r11, r3, r4
     61 add r12, r1, r2
     62 not
     63 __x5
     64 
     65 ; X5: __x5
     66 ; X5-DAG: add [[REG1:r[0-9]+]], r1, r2
     67 ; X5-DAG: add [[REG2:r[0-9]+]], r3, r4
     68 ; X5-NOT: not
     69 ; X5-DAG: mul r5, [[REG1]], [[REG2]]
     70 ; X5: __x5
     71 
     72 __x6
     73 add r11, r3, r4
     74 mul r6, r12, r11
     75 add r12, r1, r2
     76 mul r5, r12, r11
     77 __x6
     78 
     79 ; X6: __x6
     80 ; X6-DAG: add [[REG1:r[0-9]+]], r1, r2
     81 ; X6-DAG: add [[REG2:r[0-9]+]], r3, r4
     82 ; X6-NOT: not
     83 ; X6-DAG: mul r5, [[REG1]], [[REG2]]
     84 ; X6-DAG: mul r6, [[REG1]], [[REG2]]
     85 ; X6: __x6
     86