Skip to content

Commit 38ce770

Browse files
committed
[X86][test] Add test to check ah is not allocatable for register class gr8_norex2
This test should be added after #73529
1 parent 0c24c17 commit 38ce770

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
4+
define 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+

0 commit comments

Comments
 (0)