mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 21:56:34 +00:00

This is the follow up on https://reviews.llvm.org/D130730 which goes through upstream code and removes creating constant values in favour of using the constant indices in GEP directly. This leads to less and more readable code and more compact IR as well. Differential Revision: https://reviews.llvm.org/D130731
13 lines
351 B
Fortran
13 lines
351 B
Fortran
! RUN: bbc %s -o - | tco | FileCheck %s
|
|
! RUN: %flang -emit-llvm -S -mmlir -disable-external-name-interop %s -o - | FileCheck %s
|
|
|
|
COMPLEX c
|
|
c%RE = 3.14
|
|
CALL sub(c)
|
|
END
|
|
|
|
! Verify that the offset in the struct does not regress from i32.
|
|
! CHECK-LABEL: define void @_QQmain()
|
|
! CHECK: getelementptr { float, float }, ptr %{{[0-9]+}}, i32 0, i32 0
|
|
|