xref: /llvm-project/llvm/test/CodeGen/X86/apx/gr8_norex2.ll (revision 38ce770ef13131dce92a76ff80e6d5caba2d8422)
1; Check ah is not allocatable for register class gr8_norex2
2; RUN: not llc < %s -mtriple=x86_64-unknown-unknown 2>&1 | FileCheck %s
3
4define void @gr8_norex2() {
5; CHECK: error: inline assembly requires more registers than available
6  %1 = tail call i8 asm sideeffect "movb %r14b, $0", "=r,~{al},~{rbx},~{rcx},~{rdx},~{rdi},~{rsi},~{rbp},~{rsp},~{r8},~{r9},~{r10},~{r11},~{r12},~{r13},~{r14},~{r15},~{dirflag},~{fpsr},~{flags}"()
7  ret void
8}
9
10