11 lines · plain
1; RUN: not llc < %s -mtriple=i386-linux 2>&1 | FileCheck %s2 3; ptrtoint expressions that cast to a wider integer type are not supported.4; A frontend can achieve a similar result by casting to the correct integer5; type and explicitly zeroing any additional bytes.6; { i32, i32 } { i32 ptrtoint (ptr @r to i32), i32 0 }7 8; CHECK: error: unsupported expression in static initializer: ptrtoint (ptr @r to i64)9 10@r = global i64 ptrtoint (ptr @r to i64)11