1 // RUN: %clang_cc1 -emit-llvm -triple loongarch64 %s -o - | FileCheck %s
3 // CHECK: @_ZL2v1 ={{.*}} global i32 0, code_model "small"
4 static int v1
__attribute__((model("normal")));
10 // CHECK: @v2 ={{.*}} global i32 0, code_model "medium"
11 int v2
__attribute__((model("medium")));
13 // CHECK: @v3 ={{.*}} global float 0.000000e+00, code_model "large"
14 float v3
__attribute__((model("extreme")));
16 // CHECK: @_ZL2v4IiE ={{.*}} global i32 0, code_model "medium"
18 static T v4
__attribute__((model("medium")));
28 // CHECK: @v5 ={{.*}} global {{.*}}, code_model "medium"
29 S v5
__attribute__((model("medium")));
33 // CHECK: @v6 ={{.*}} global ptr null, code_model "large"
34 F v6
__attribute__((model("extreme")));