[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / round-trip.s
blobaa817d399c002d5ad263ba3394525bcc351e2559
1 # RUN: llvm-mc -preserve-comments -triple amdgcn-amd- %s >%t-1.s
2 # RUN: llvm-mc -preserve-comments -triple amdgcn-amd- %t-1.s >%t-2.s
3 # RUN: diff %t-1.s %t-2.s
5 # Test that AMDGPU assembly round-trips when run through MC; the first
6 # transition from hand-written to "canonical" output may introduce some small
7 # differences, so we don't include the initial input in the comparison.
9 .text
11 # The AMDGPU asm parser didn't consume the end of statement
12 # consistently, which led to extra empty lines in the output.
13 s_nop 0