brintos

brintos / llvm-project-archived public Read only

0
0
Text · 961 B · ba130aa Raw
28 lines · plain
1; REQUIRES: asserts2; RUN: llc < %s -mtriple=x86_64-linux -o /dev/null -stats 2>&1 | FileCheck %s -check-prefix=STATS3; RUN: llc < %s -mtriple=x86_64-win32 -o /dev/null -stats 2>&1 | FileCheck %s -check-prefix=STATS4; STATS: 9 asm-printer5 6; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s7; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s8; CHECK: leal 1({{%rsi|%rdx}}),9 10define fastcc zeroext i8 @fullGtU(i32 %i1, i32 %i2, ptr %ptr) nounwind optsize {11entry:12  %0 = add i32 %i2, 1           ; <i32> [#uses=1]13  %1 = sext i32 %0 to i64               ; <i64> [#uses=1]14  %2 = getelementptr i8, ptr %ptr, i64 %1           ; <ptr> [#uses=1]15  %3 = load i8, ptr %2, align 1             ; <i8> [#uses=1]16  %4 = icmp eq i8 0, %3         ; <i1> [#uses=1]17  br i1 %4, label %bb3, label %bb3418 19bb3:            ; preds = %entry20  %5 = add i32 %i2, 4           ; <i32> [#uses=0]21  %6 = trunc i32 %5 to i822  ret i8 %623 24bb34:           ; preds = %entry25  ret i8 026}27 28