1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-unknown-linux-gnu"
6 ; Function Attrs: nounwind uwtable
7 define i32 @foo1(ptr align 32 %a) #0 {
10 ; CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[A:%.*]], align 4
11 ; CHECK-NEXT: ret i32 [[TMP0]]
14 %0 = load i32, ptr %a, align 4
19 define i32 @foo2(ptr align 32 %a) #0 {
22 ; CHECK-NEXT: [[V:%.*]] = call ptr @func1(ptr [[A:%.*]])
23 ; CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[A]], align 4
24 ; CHECK-NEXT: ret i32 [[TMP0]]
27 %v = call ptr @func1(ptr %a)
28 %0 = load i32, ptr %v, align 4
33 declare ptr @func1(ptr returned) nounwind