2021-03-12 04:46:17 -06:00
|
|
|
//@ only-x86_64
|
|
|
|
|
2021-03-11 17:35:13 -06:00
|
|
|
//@ revisions: NOMODEL MODEL-SMALL MODEL-KERNEL MODEL-MEDIUM MODEL-LARGE
|
|
|
|
//@[NOMODEL] compile-flags:
|
|
|
|
//@[MODEL-SMALL] compile-flags: -C code-model=small
|
2021-03-12 04:46:17 -06:00
|
|
|
//@[MODEL-KERNEL] compile-flags: -C code-model=kernel
|
2021-03-11 17:35:13 -06:00
|
|
|
//@[MODEL-MEDIUM] compile-flags: -C code-model=medium
|
|
|
|
//@[MODEL-LARGE] compile-flags: -C code-model=large
|
|
|
|
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
// MODEL-SMALL: !llvm.module.flags = !{{{.*}}}
|
|
|
|
// MODEL-SMALL: !{{[0-9]+}} = !{i32 1, !"Code Model", i32 1}
|
|
|
|
// MODEL-KERNEL: !llvm.module.flags = !{{{.*}}}
|
|
|
|
// MODEL-KERNEL: !{{[0-9]+}} = !{i32 1, !"Code Model", i32 2}
|
|
|
|
// MODEL-MEDIUM: !llvm.module.flags = !{{{.*}}}
|
|
|
|
// MODEL-MEDIUM: !{{[0-9]+}} = !{i32 1, !"Code Model", i32 3}
|
|
|
|
// MODEL-LARGE: !llvm.module.flags = !{{{.*}}}
|
|
|
|
// MODEL-LARGE: !{{[0-9]+}} = !{i32 1, !"Code Model", i32 4}
|
|
|
|
// NOMODEL-NOT: Code Model
|