1 ; The register allocator can commute two-address instructions to avoid
2 ; insertion of register-register copies.
4 ; Check that there are no register-register copies left.
5 ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | not grep 'mov %E.X, %E.X'
7 %G = external global int
11 int %add_test(int %X, int %Y) {
12 %Z = add int %X, %Y ;; Last use of Y, but not of X.
17 int %xor_test(int %X, int %Y) {
18 %Z = xor int %X, %Y ;; Last use of Y, but not of X.