1; Check r16-r31 can not be used with 'q','r','l' constraint for backward compatibility. 2; RUN: not llc -mtriple=x86_64 < %s 2>&1 | FileCheck %s --check-prefix=ERR 3; RUN: not llc -mtriple=x86_64 -mattr=+egpr < %s 2>&1 | FileCheck %s --check-prefix=ERR 4; RUN: llc -mtriple=x86_64 -mattr=+egpr,+inline-asm-use-gpr32 < %s | FileCheck %s 5 6define void @q() { 7; ERR: error: inline assembly requires more registers than available 8; CHECK: movq %rax, %r16 9 %a = call i64 asm sideeffect "movq %rax, $0", "=q,~{rax},~{rbx},~{rcx},~{rdx},~{rdi},~{rsi},~{rbp},~{rsp},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{r15}"() 10 ret void 11} 12 13define void @r() { 14; ERR: error: inline assembly requires more registers than available 15; CHECK: movq %rax, %r16 16 %a = call i64 asm sideeffect "movq %rax, $0", "=r,~{rax},~{rbx},~{rcx},~{rdx},~{rdi},~{rsi},~{rbp},~{rsp},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{r15}"() 17 ret void 18} 19 20define void @l() { 21; ERR: error: inline assembly requires more registers than available 22; CHECK: movq %rax, %r16 23 %a = call i64 asm sideeffect "movq %rax, $0", "=l,~{rax},~{rbx},~{rcx},~{rdx},~{rdi},~{rsi},~{rbp},~{rsp},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{r15}"() 24 ret void 25} 26 27