1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
3 @addr = external global i64
5 define i64 @add_plain_ce() {
6 ; CHECK: ret i64 add (i64 ptrtoint (i64* @addr to i64), i64 91)
7 ret i64 add (i64 ptrtoint (i64* @addr to i64), i64 91)
10 define i64 @sub_plain_ce() {
11 ; CHECK: ret i64 sub (i64 ptrtoint (i64* @addr to i64), i64 91)
12 ret i64 sub (i64 ptrtoint (i64* @addr to i64), i64 91)
15 define i64 @mul_plain_ce() {
16 ; CHECK: ret i64 mul (i64 ptrtoint (i64* @addr to i64), i64 91)
17 ret i64 mul (i64 ptrtoint (i64* @addr to i64), i64 91)
20 define i64 @sdiv_plain_ce() {
21 ; CHECK: ret i64 sdiv (i64 ptrtoint (i64* @addr to i64), i64 91)
22 ret i64 sdiv (i64 ptrtoint (i64* @addr to i64), i64 91)
25 define i64* @gep_plain_ce() {
26 ; CHECK: ret i64* getelementptr (i64* @addr, i64 171)
27 ret i64* getelementptr (i64* @addr, i64 171)