summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/CPP/gep.ll
blob: 88a0bf1f216d90c58a73318859766cf6471481e6 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc -march=cpp -o - %s | FileCheck %s

define void @f1(i32* %addr) {
  %x = getelementptr i32, i32* %addr, i32 1
; CHECK: ConstantInt* [[INT_1:.*]] = ConstantInt::get(mod->getContext(), APInt(32, StringRef("1"), 10));
; CHECK: GetElementPtrInst::Create(IntegerType::get(mod->getContext(), 32), ptr_addr,
; CHECK-NEXT:  [[INT_1]]
; CHECK-NEXT: }, "x", label_3);
  ret void
}
OpenPOWER on IntegriCloud