blob: 6f61aa68b67e3c1c8114fb629ad1bac482228181 [file] [log] [blame]
Daniel Dunbar46a27162010-11-13 00:28:01 +00001; This testcase should return with an exit code of 1.
Chris Lattner7c87e402003-05-06 19:41:25 +00002;
Eli Benderskya66a1852012-01-16 08:56:09 +00003; RUN: not %lli %s
Andrew Trick0005cc72011-08-26 23:39:30 +00004; XFAIL: arm
Chris Lattner7c87e402003-05-06 19:41:25 +00005
Tanya Lattnerceca1942008-03-10 07:21:50 +00006@test = global i64 0 ; <i64*> [#uses=1]
Chris Lattner7c87e402003-05-06 19:41:25 +00007
Tanya Lattnerceca1942008-03-10 07:21:50 +00008define internal i64 @test.upgrd.1() {
9 %tmp.0 = load i64* @test ; <i64> [#uses=1]
10 %tmp.1 = add i64 %tmp.0, 1 ; <i64> [#uses=1]
11 ret i64 %tmp.1
Chris Lattner7c87e402003-05-06 19:41:25 +000012}
13
Tanya Lattnerceca1942008-03-10 07:21:50 +000014define i32 @main() {
15 %L = call i64 @test.upgrd.1( ) ; <i64> [#uses=1]
16 %I = trunc i64 %L to i32 ; <i32> [#uses=1]
17 ret i32 %I
Chris Lattner7c87e402003-05-06 19:41:25 +000018}
19
Tanya Lattnerceca1942008-03-10 07:21:50 +000020