aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/x86-inline-asm-validation.ll
blob: 56bdc48b0e4c624654460c0de63f8f291f890b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
; RUN: llc -mtriple i686-gnu -filetype asm -o - %s 2>&1 | FileCheck %s

define void @test_L_ff() {
entry:
  call void asm "", "L,~{dirflag},~{fpsr},~{flags}"(i32 255)
  ret void
}

; CHECK-NOT: error: invalid operand for inline asm constraint 'L'

define void @test_L_ffff() {
entry:
  call void asm "", "L,~{dirflag},~{fpsr},~{flags}"(i32 65535)
  ret void
}

; CHECK-NOT: error: invalid operand for inline asm constraint 'L'

define void @test_M_1() {
entry:
  call void asm "", "M,~{dirflag},~{fpsr},~{flags}"(i32 1)
  ret void
}

; CHECK-NOT: error: invalid operand for inline asm constraint 'M'

define void @test_O_64() {
entry:
  call void asm "", "O,~{dirflag},~{fpsr},~{flags}"(i32 64)
  ret void
}

; CHECK-NOT: error: invalid operand for inline asm constraint 'O'