brintos

brintos / llvm-project-archived public Read only

0
0
Text · 701 B · 1386192 Raw
14 lines · plain
1; RUN: opt -passes=instcombine -S < %s | FileCheck %s2 3; We used to fold this by rewriting the indices to 0, 0, 2, 0.  This is4; invalid because there is a 4-byte padding after each <3 x float> field.5 6target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"7target triple = "x86_64-apple-macosx10.11.0"8 9%struct.matrix_float3x3 = type { [3 x <3 x float>] }10 11@matrix_identity_float3x3 = external global %struct.matrix_float3x3, align 1612@bbb = global ptr getelementptr inbounds (%struct.matrix_float3x3, ptr @matrix_identity_float3x3, i64 0, i32 0, i64 1, i64 3)13; CHECK: @bbb = global ptr getelementptr inbounds (%struct.matrix_float3x3, ptr @matrix_identity_float3x3, i64 0, i32 0, i64 1, i64 3)14