You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
309 B

@NUDT_GLOBAL_VAR_a = global i32 1
@NUDT_GLOBAL_VAR_b = global i32 2
define i32 @main() {
bb_0:
%v0 = alloca i32
%v2 = load i32, i32* @NUDT_GLOBAL_VAR_a
%v4 = load i32, i32* @NUDT_GLOBAL_VAR_b
%v5 = add i32 %v2, %v4
store i32 %v5, i32* %v0
br label %bb_1
bb_1:
%v6 = load i32, i32* %v0
ret i32 %v6
}