blob: 25fa6a08dce77606f13c2cf8d4237389af16c32b [file] [log] [blame]
Dan Gohman799a8c82009-07-20 21:19:07 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2
3@addr = external global i64
4
5define i64 @add_both_reversed_ce() {
Dan Gohman29392252009-07-27 16:11:46 +00006; CHECK: ret i64 add nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
7 ret i64 add nsw nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
Dan Gohman799a8c82009-07-20 21:19:07 +00008}
9
10define i64 @sub_both_reversed_ce() {
Dan Gohman29392252009-07-27 16:11:46 +000011; CHECK: ret i64 sub nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
12 ret i64 sub nsw nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
Dan Gohman799a8c82009-07-20 21:19:07 +000013}
14
15define i64 @mul_both_reversed_ce() {
Dan Gohman29392252009-07-27 16:11:46 +000016; CHECK: ret i64 mul nuw nsw (i64 ptrtoint (i64* @addr to i64), i64 91)
17 ret i64 mul nsw nuw (i64 ptrtoint (i64* @addr to i64), i64 91)
Dan Gohman799a8c82009-07-20 21:19:07 +000018}