IR: de-duplicate two CmpInst routines (NFC) (#116866)
[llvm-project.git] / flang / test / Lower / mcmodel.f90
blob971dc3b9056fe9390e81e651d204df7e8ed7eee4
1 ! REQUIRES: aarch64-registered-target && x86-registered-target
3 ! RUN: %flang_fc1 -triple aarch64 -emit-llvm -mcmodel=tiny %s -o - | FileCheck %s -check-prefix=CHECK-TINY
4 ! RUN: %flang_fc1 -emit-llvm -mcmodel=small %s -o - | FileCheck %s -check-prefix=CHECK-SMALL
5 ! RUN: %flang_fc1 -triple x86_64-unknown-linux-gnu -emit-llvm -mcmodel=kernel %s -o - | FileCheck %s -check-prefix=CHECK-KERNEL
6 ! RUN: %flang_fc1 -triple x86_64-unknown-linux-gnu -emit-llvm -mcmodel=medium %s -o - | FileCheck %s -check-prefix=CHECK-MEDIUM
7 ! RUN: %flang_fc1 -emit-llvm -mcmodel=large %s -o - | FileCheck %s -check-prefix=CHECK-LARGE
9 ! CHECK-TINY: !llvm.module.flags = !{{{.*}}}
10 ! CHECK-TINY: !{{[0-9]+}} = !{i32 1, !"Code Model", i32 0}
11 ! CHECK-SMALL: !llvm.module.flags = !{{{.*}}}
12 ! CHECK-SMALL: !{{[0-9]+}} = !{i32 1, !"Code Model", i32 1}
13 ! CHECK-KERNEL: !llvm.module.flags = !{{{.*}}}
14 ! CHECK-KERNEL: !{{[0-9]+}} = !{i32 1, !"Code Model", i32 2}
15 ! CHECK-MEDIUM: !llvm.module.flags = !{{{.*}}}
16 ! CHECK-MEDIUM: !{{[0-9]+}} = !{i32 1, !"Code Model", i32 3}
17 ! CHECK-LARGE: !llvm.module.flags = !{{{.*}}}
18 ! CHECK-LARGE: !{{[0-9]+}} = !{i32 1, !"Code Model", i32 4}