1 // RUN: %llvmgcc %s -c -O3 -emit-llvm -o - | llc -march=x86-64 -mtriple=x86_64-apple-darwin | FileCheck %s
2 // r9 used to be clobbered before its value was moved to r10. 7993104.
4 void foo(int x
, int y
) {
6 // CHECK: movq %r9, %r10
7 // CHECK: movq %rdi, %r9
9 register int lr9
asm("r9") = x
;
10 register int lr10
asm("r10") = y
;
12 asm volatile("bar" : "=r"(lr9
) : "r"(lr9
), "r"(lr10
));
16 asm volatile("bar" : "=r"(lr9
) : "r"(lr9
), "r"(lr10
));