llvm-project/llvm/test/CodeGen/X86/ptrtoint-constexpr.ll
Nikita Popov d8b2e432d6
[IR] Remove mul constant expression (#127046)
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
2025-02-14 09:28:57 +01:00

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))