1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -verify-machineinstrs -mtriple=x86_64-unknown-unknown --show-mc-encoding -mattr=+raoint | FileCheck %s --check-prefixes=X64
3 ; RUN: llc < %s -verify-machineinstrs -mtriple=i686-unknown-unknown --show-mc-encoding -mattr=+raoint | FileCheck %s --check-prefixes=X86
5 define void @test_int_x86_aadd32(ptr %A, i32 %B) {
6 ; X64-LABEL: test_int_x86_aadd32:
8 ; X64-NEXT: aaddl %esi, (%rdi) # encoding: [0x0f,0x38,0xfc,0x37]
9 ; X64-NEXT: retq # encoding: [0xc3]
11 ; X86-LABEL: test_int_x86_aadd32:
13 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax # encoding: [0x8b,0x44,0x24,0x08]
14 ; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx # encoding: [0x8b,0x4c,0x24,0x04]
15 ; X86-NEXT: aaddl %eax, (%ecx) # encoding: [0x0f,0x38,0xfc,0x01]
16 ; X86-NEXT: retl # encoding: [0xc3]
17 call void @llvm.x86.aadd32(ptr %A, i32 %B)
20 declare void @llvm.x86.aadd32(ptr %A, i32 %B)
22 define void @test_int_x86_aand32(ptr %A, i32 %B) {
23 ; X64-LABEL: test_int_x86_aand32:
25 ; X64-NEXT: aandl %esi, (%rdi) # encoding: [0x66,0x0f,0x38,0xfc,0x37]
26 ; X64-NEXT: retq # encoding: [0xc3]
28 ; X86-LABEL: test_int_x86_aand32:
30 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax # encoding: [0x8b,0x44,0x24,0x08]
31 ; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx # encoding: [0x8b,0x4c,0x24,0x04]
32 ; X86-NEXT: aandl %eax, (%ecx) # encoding: [0x66,0x0f,0x38,0xfc,0x01]
33 ; X86-NEXT: retl # encoding: [0xc3]
34 call void @llvm.x86.aand32(ptr %A, i32 %B)
37 declare void @llvm.x86.aand32(ptr %A, i32 %B)
39 define void @test_int_x86_aor32(ptr %A, i32 %B) {
40 ; X64-LABEL: test_int_x86_aor32:
42 ; X64-NEXT: aorl %esi, (%rdi) # encoding: [0xf2,0x0f,0x38,0xfc,0x37]
43 ; X64-NEXT: retq # encoding: [0xc3]
45 ; X86-LABEL: test_int_x86_aor32:
47 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax # encoding: [0x8b,0x44,0x24,0x08]
48 ; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx # encoding: [0x8b,0x4c,0x24,0x04]
49 ; X86-NEXT: aorl %eax, (%ecx) # encoding: [0xf2,0x0f,0x38,0xfc,0x01]
50 ; X86-NEXT: retl # encoding: [0xc3]
51 call void @llvm.x86.aor32(ptr %A, i32 %B)
54 declare void @llvm.x86.aor32(ptr %A, i32 %B)
56 define void @test_int_x86_axor32(ptr %A, i32 %B) {
57 ; X64-LABEL: test_int_x86_axor32:
59 ; X64-NEXT: axorl %esi, (%rdi) # encoding: [0xf3,0x0f,0x38,0xfc,0x37]
60 ; X64-NEXT: retq # encoding: [0xc3]
62 ; X86-LABEL: test_int_x86_axor32:
64 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax # encoding: [0x8b,0x44,0x24,0x08]
65 ; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx # encoding: [0x8b,0x4c,0x24,0x04]
66 ; X86-NEXT: axorl %eax, (%ecx) # encoding: [0xf3,0x0f,0x38,0xfc,0x01]
67 ; X86-NEXT: retl # encoding: [0xc3]
68 call void @llvm.x86.axor32(ptr %A, i32 %B)
71 declare void @llvm.x86.axor32(ptr %A, i32 %B)