llvm/test/Other/ChangePrinters/DotCfg/print-changed-dot-cfg.mir
raw| 1 | # REQUIRES: x86-registered-target |
| 2 | # Simple functionality check. |
| 3 | # RUN: rm -rf %t && mkdir -p %t |
| 4 | # RUN: llc -mtriple=x86_64-pc-linux-gnu -filetype=null -print-changed=dot-cfg -passes=no-op-machine-function -dot-cfg-dir=%t %s |
| 5 | # RUN: ls %t/*.pdf %t/passes.html | count 3 |
| 6 | |
| 7 | --- |
| 8 | name: g |
| 9 | body: | |
| 10 | bb.0.entry: |
| 11 | %0:gr32 = MOV32ri 5 |
| 12 | $eax = COPY %0 |
| 13 | RET 0, $eax |
| 14 | |
| 15 | ... |
| 16 | --- |
| 17 | name: f |
| 18 | body: | |
| 19 | bb.0.entry: |
| 20 | %0:gr32 = MOV32ri 7 |
| 21 | $eax = COPY %0 |
| 22 | RET 0, $eax |
| 23 | |
| 24 | ... |