1 // RUN: fir-opt --split-input-file --fir-to-llvm-ir %s | FileCheck --check-prefixes=COMMON,DEFAULT %s
2 // RUN: fir-opt --kind-mapping="i1:4,i2:8,i4:16,i8:32,i16:64" --split-input-file --fir-to-llvm-ir %s | FileCheck --check-prefixes=COMMON,ALL-CUSTOM %s
3 // RUN: fir-opt --kind-mapping="i2:1,i4:8,i16:32" --split-input-file --fir-to-llvm-ir %s | FileCheck --check-prefixes=COMMON,SOME-CUSTOM %s
5 // Test `!fir.integer<KIND>` conversion with and without kind-mapping string
7 func.func private @foo0(%arg0: !fir.int<1>)
10 // ALL-CUSTOM-SAME: i4
11 // SOME-CUSTOM-SAME: i8
13 func.func private @foo1(%arg0: !fir.int<2>)
16 // ALL-CUSTOM-SAME: i8
17 // SOME-CUSTOM-SAME: i1
19 func.func private @foo2(%arg0: !fir.int<4>)
22 // ALL-CUSTOM-SAME: i16
23 // SOME-CUSTOM-SAME: i8
25 func.func private @foo3(%arg0: !fir.int<8>)
28 // ALL-CUSTOM-SAME: i32
29 // SOME-CUSTOM-SAME: i64
31 func.func private @foo4(%arg0: !fir.int<16>)
34 // ALL-CUSTOM-SAME: i64
35 // SOME-CUSTOM-SAME: i32