1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7 --show-mc-encoding| FileCheck %s --check-prefix=NOADX --check-prefix=CHECK
2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=broadwell --show-mc-encoding| FileCheck %s --check-prefix=ADX --check-prefix=CHECK
4 declare i8 @llvm.x86.addcarryx.u32(i8, i32, i32, i8*)
6 define i8 @test_addcarryx_u32(i8 %c, i32 %a, i32 %b, i8* %ptr) {
7 ; CHECK-LABEL: test_addcarryx_u32
12 %ret = tail call i8 @llvm.x86.addcarryx.u32(i8 %c, i32 %a, i32 %b, i8* %ptr)
16 declare i8 @llvm.x86.addcarryx.u64(i8, i64, i64, i8*)
18 define i8 @test_addcarryx_u64(i8 %c, i64 %a, i64 %b, i8* %ptr) {
19 ; CHECK-LABEL: test_addcarryx_u64
24 %ret = tail call i8 @llvm.x86.addcarryx.u64(i8 %c, i64 %a, i64 %b, i8* %ptr)
28 declare i8 @llvm.x86.addcarry.u32(i8, i32, i32, i8*)
30 define i8 @test_addcarry_u32(i8 %c, i32 %a, i32 %b, i8* %ptr) {
31 ; CHECK-LABEL: test_addcarry_u32
37 %ret = tail call i8 @llvm.x86.addcarry.u32(i8 %c, i32 %a, i32 %b, i8* %ptr)
41 declare i8 @llvm.x86.addcarry.u64(i8, i64, i64, i8*)
43 define i8 @test_addcarry_u64(i8 %c, i64 %a, i64 %b, i8* %ptr) {
44 ; CHECK-LABEL: test_addcarry_u64
50 %ret = tail call i8 @llvm.x86.addcarry.u64(i8 %c, i64 %a, i64 %b, i8* %ptr)
54 declare i8 @llvm.x86.subborrow.u32(i8, i32, i32, i8*)
56 define i8 @test_subborrow_u32(i8 %c, i32 %a, i32 %b, i8* %ptr) {
57 ; CHECK-LABEL: test_subborrow_u32
62 %ret = tail call i8 @llvm.x86.subborrow.u32(i8 %c, i32 %a, i32 %b, i8* %ptr)
66 declare i8 @llvm.x86.subborrow.u64(i8, i64, i64, i8*)
68 define i8 @test_subborrow_u64(i8 %c, i64 %a, i64 %b, i8* %ptr) {
69 ; CHECK-LABEL: test_subborrow_u64
74 %ret = tail call i8 @llvm.x86.subborrow.u64(i8 %c, i64 %a, i64 %b, i8* %ptr)