Skip to content

Commit

Permalink
Improve testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrDeveloper committed Jan 2, 2025
1 parent 0517929 commit f508be8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions clang/test/CIR/CodeGen/AArch64/neon.c
Original file line number Diff line number Diff line change
Expand Up @@ -9899,21 +9899,23 @@ int64_t test_vsubd_s64(int64_t a, int64_t b) {
return vsubd_s64(a, b);

// CIR-LABEL: vsubd_s64
// CIR: [[v3:%.*]] = cir.binop(sub, [[v1:%.*]], [[v2:%.*]]) : !s64i
// CIR: {{%.*}} = cir.binop(sub, {{%.*}}, {{%.*}}) : !s64i

// LLVM-LABEL: @test_vsubd_s64(
// LLVM: [[VSUBD_I:%.*]] = sub i64 [[a:%.*]], [[b:%.*]]
// LLVM-LABEL: @test_vsubd_s64
// LLVM-SAME: (i64 [[a:%.]], i64 [[b:%.]])
// LLVM: [[VSUBD_I:%.*]] = sub i64 [[a]], [[b]]
// LLVM: ret i64 [[VSUBD_I]]
}

uint64_t test_vsubd_u64(uint64_t a, uint64_t b) {
return vsubd_u64(a, b);

// CIR-LABEL: vsubd_u64
// CIR: [[v3:%.*]] = cir.binop(sub, [[v1:%.*]], [[v2:%.*]]) : !u64i
// CIR: {{%.*}} = cir.binop(sub, {{%.*}}, {{%.*}}) : !u64i

// LLVM-LABEL: @test_vsubd_u64(
// LLVM: [[VSUBD_I:%.*]] = sub i64 [[a:%.*]], [[b:%.*]]
// LLVM-LABEL: @test_vsubd_u64
// LLVM-SAME: (i64 [[a:%.]], i64 [[b:%.]])
// LLVM: [[VSUBD_I:%.*]] = sub i64 [[a]], [[b]]
// LLVM: ret i64 [[VSUBD_I]]
}

Expand Down

0 comments on commit f508be8

Please sign in to comment.