
Remove support for the mul constant expression, which has previously already been marked as undesirable. This removes the APIs to create mul expressions and updates tests to stop using mul expressions. Part of: https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179
15 lines
330 B
LLVM
15 lines
330 B
LLVM
; RUN: llc < %s -mtriple=i386-linux | FileCheck %s
|
|
%union.x = type { i32 }
|
|
|
|
; CHECK: .globl r
|
|
; CHECK: r:
|
|
; CHECK: .long r
|
|
|
|
@r = global %union.x { i32 ptrtoint (ptr @r to i32) }, align 4
|
|
|
|
; CHECK: .globl x
|
|
; CHECK: x:
|
|
; CHECK: .quad 1+3
|
|
|
|
@x = global i64 add (i64 3, i64 ptrtoint (ptr getelementptr (i2, ptr null, i64 1) to i64))
|