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