brintos

brintos / llvm-project-archived public Read only

0
0
Text · 500 B · f390355 Raw
17 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- | FileCheck %s3 4@x = external dso_local global i32                ; <ptr> [#uses=1]5 6define i32 @test() {7; CHECK-LABEL: test:8; CHECK:       # %bb.0:9; CHECK-NEXT:    movl x, %eax10; CHECK-NEXT:    addl %eax, %eax11; CHECK-NEXT:    retl12        %tmp.0 = load i32, ptr @x           ; <i32> [#uses=1]13        %tmp.1 = shl i32 %tmp.0, 1              ; <i32> [#uses=1]14        ret i32 %tmp.115}16 17