1 ; RUN: llc < %s -march=x86 -mtriple=i386-linux | FileCheck %s 2 ; PR1339 3 4 @"$bar" = global i32 zeroinitializer 5 @"$qux" = external global i32 6 7 define i32 @"$foo"() nounwind { 8 ; CHECK: movl ($bar), 9 ; CHECK: addl ($qux), 10 ; CHECK: calll ($hen) 11 %m = load i32, i32* @"$bar" 12 %n = load i32, i32* @"$qux" 13 %t = add i32 %m, %n 14 %u = call i32 @"$hen"(i32 %t) 15 ret i32 %u 16 } 17 18 declare i32 @"$hen"(i32 %a) 19