• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s
2@global_long_1 = linkonce global i64 7          ; <i64*> [#uses=1]
3@global_long_2 = linkonce global i64 49         ; <i64*> [#uses=1]
4
5define i32 @main() {
6        %l1 = load i64, i64* @global_long_1          ; <i64> [#uses=1]
7        %l2 = load i64, i64* @global_long_2          ; <i64> [#uses=1]
8        %cond = icmp sle i64 %l1, %l2           ; <i1> [#uses=1]
9        %cast2 = zext i1 %cond to i32           ; <i32> [#uses=1]
10        %RV = sub i32 1, %cast2         ; <i32> [#uses=1]
11        ret i32 %RV
12}
13
14