llvm-project/clang/test/CodeGen/RISCV/riscv32-int128-abi.c
Alex Bradbury 8964d7a1d7 [clang][RISCV][NFC] Combine RV32/RV64 ABI tests into single files
After D134050, it makes sense to combine the RV64 ABI tests into a
single file in order to make it more maintainable (i.e. not having to
split tests based on the combinations of ABIs they're expected to
impact). This patch deletes duplicated tests but doesn't do much further
reorganisation beyond that.

I imagine the logical ordering of tests in the file and comments could
be further improved in the future. My personal feeling is that it's
probably not worth investing the time to try to get this "perfect", and
to instead settle for this incremental step forward. But if there's
reviewer interest in attempting to further iterate, I'm happy to do so.

Differential Revision: https://reviews.llvm.org/D140400
2023-03-15 17:07:02 +00:00

10 lines
409 B
C

// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --filter "^define |^entry:" --version 2
// RUN: %clang_cc1 -triple riscv32 -emit-llvm -fforce-enable-int128 %s -o - \
// RUN: | FileCheck %s
// CHECK-LABEL: define dso_local i128 @f_int128
// CHECK-SAME: (i128 noundef [[X:%.*]]) #[[ATTR0:[0-9]+]] {
// CHECK: entry:
//
__int128_t f_int128(__int128_t x) { return x; }