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=x86_64-unknown-unknown --show-mc-encoding -mattr=+raoint,+egpr | FileCheck %s --check-prefixes=EGPR
5 define void @test_int_x86_aadd64(ptr %A, i64 %B) {
6 ; X64-LABEL: test_int_x86_aadd64:
8 ; X64-NEXT: aaddq %rsi, (%rdi) # encoding: [0x48,0x0f,0x38,0xfc,0x37]
9 ; X64-NEXT: retq # encoding: [0xc3]
11 ; EGPR-LABEL: test_int_x86_aadd64:
13 ; EGPR-NEXT: aaddq %rsi, (%rdi) # EVEX TO LEGACY Compression encoding: [0x48,0x0f,0x38,0xfc,0x37]
14 ; EGPR-NEXT: retq # encoding: [0xc3]
15 call void @llvm.x86.aadd64(ptr %A, i64 %B)
18 declare void @llvm.x86.aadd64(ptr %A, i64 %B)
20 define void @test_int_x86_aand64(ptr %A, i64 %B) {
21 ; X64-LABEL: test_int_x86_aand64:
23 ; X64-NEXT: aandq %rsi, (%rdi) # encoding: [0x66,0x48,0x0f,0x38,0xfc,0x37]
24 ; X64-NEXT: retq # encoding: [0xc3]
26 ; EGPR-LABEL: test_int_x86_aand64:
28 ; EGPR-NEXT: aandq %rsi, (%rdi) # EVEX TO LEGACY Compression encoding: [0x66,0x48,0x0f,0x38,0xfc,0x37]
29 ; EGPR-NEXT: retq # encoding: [0xc3]
30 call void @llvm.x86.aand64(ptr %A, i64 %B)
33 declare void @llvm.x86.aand64(ptr %A, i64 %B)
35 define void @test_int_x86_aor64(ptr %A, i64 %B) {
36 ; X64-LABEL: test_int_x86_aor64:
38 ; X64-NEXT: aorq %rsi, (%rdi) # encoding: [0xf2,0x48,0x0f,0x38,0xfc,0x37]
39 ; X64-NEXT: retq # encoding: [0xc3]
41 ; EGPR-LABEL: test_int_x86_aor64:
43 ; EGPR-NEXT: aorq %rsi, (%rdi) # EVEX TO LEGACY Compression encoding: [0xf2,0x48,0x0f,0x38,0xfc,0x37]
44 ; EGPR-NEXT: retq # encoding: [0xc3]
45 call void @llvm.x86.aor64(ptr %A, i64 %B)
48 declare void @llvm.x86.aor64(ptr %A, i64 %B)
50 define void @test_int_x86_axor64(ptr %A, i64 %B) {
51 ; X64-LABEL: test_int_x86_axor64:
53 ; X64-NEXT: axorq %rsi, (%rdi) # encoding: [0xf3,0x48,0x0f,0x38,0xfc,0x37]
54 ; X64-NEXT: retq # encoding: [0xc3]
56 ; EGPR-LABEL: test_int_x86_axor64:
58 ; EGPR-NEXT: axorq %rsi, (%rdi) # EVEX TO LEGACY Compression encoding: [0xf3,0x48,0x0f,0x38,0xfc,0x37]
59 ; EGPR-NEXT: retq # encoding: [0xc3]
60 call void @llvm.x86.axor64(ptr %A, i64 %B)
63 declare void @llvm.x86.axor64(ptr %A, i64 %B)