blob: b82348b32e43c28a5847faee6cdae6678f6684f4 [file] [log] [blame]
NAKAMURA Takumibfc4c982011-03-16 13:53:07 +00001; RUN: llc < %s -mtriple=x86_64-linux -o /dev/null -stats |& FileCheck %s -check-prefix=STATS
2; RUN: llc < %s -mtriple=x86_64-win32 -o /dev/null -stats |& FileCheck %s -check-prefix=STATS
3; STATS: 9 asm-printer
4
5; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
6; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
7; CHECK: leal 1({{%rsi|%rdx}}),
Dan Gohmancca29832009-01-06 23:34:46 +00008
Evan Cheng00a99a32010-02-06 09:07:11 +00009define fastcc zeroext i8 @fullGtU(i32 %i1, i32 %i2, i8* %ptr) nounwind optsize {
Dan Gohmancca29832009-01-06 23:34:46 +000010entry:
11 %0 = add i32 %i2, 1 ; <i32> [#uses=1]
12 %1 = sext i32 %0 to i64 ; <i64> [#uses=1]
Evan Cheng00a99a32010-02-06 09:07:11 +000013 %2 = getelementptr i8* %ptr, i64 %1 ; <i8*> [#uses=1]
Dan Gohmancca29832009-01-06 23:34:46 +000014 %3 = load i8* %2, align 1 ; <i8> [#uses=1]
15 %4 = icmp eq i8 0, %3 ; <i1> [#uses=1]
16 br i1 %4, label %bb3, label %bb34
17
18bb3: ; preds = %entry
19 %5 = add i32 %i2, 4 ; <i32> [#uses=0]
Evan Cheng00a99a32010-02-06 09:07:11 +000020 %6 = trunc i32 %5 to i8
21 ret i8 %6
Dan Gohmancca29832009-01-06 23:34:46 +000022
23bb34: ; preds = %entry
24 ret i8 0
25}
26