summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/X86/asm-modifier-error.ll
blob: d16ef65c7dc0416062abca0aaa7eb0393cfda5c2 (plain)
1
2
3
4
5
6
7
8
9
; RUN: not llc < %s -mtriple=x86_64-unknown-unknown 2>&1 | FileCheck %s

; CHECK: error: invalid operand in inline asm: 'mov %ah, ${0:h}'
define void @test1() {
entry:
  %0 = tail call i8 asm sideeffect "mov %ah, ${0:h}", "=r,~{eax},~{ebx},~{ecx},~{edx},~{dirflag},~{fpsr},~{flags}"()
  ret void
}