File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
llvm/test/Transforms/InstSimplify/ConstProp Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22; RUN: opt -S -passes=instsimplify < %s | FileCheck %s
33;; Check that we do not create new inttoptr instructions for unstable pointers
44;; or pointers with external state (even if the values are all constants).
5- ;; NOTE: for all but the zero address space, the GEP should only modify the low 8 bits of the pointer.
5+ ;; NOTE: for all but the zero address space, the GEP should only modify the
6+ ;; low 8 bits of the pointer.
67target datalayout = "p:16:16:16:16-p1:16:16:16:8-pu2:16:16:16:8-pe3:16:16:16:8"
78
89define ptr @test_null_base_normal () {
@@ -22,7 +23,7 @@ define ptr @test_inttoptr_base_normal() {
2223}
2324
2425;; Transformation is fine for non-integral address space, but we can only change
25- ;; the index bits (i8 -2 == i16 254)
26+ ;; the index bits: (i8 -2 == i16 254)
2627define ptr addrspace (1 ) @test_null_base_nonintegral () {
2728; CHECK-LABEL: define ptr addrspace(1) @test_null_base_nonintegral() {
2829; CHECK-NEXT: ret ptr addrspace(1) inttoptr (i16 254 to ptr addrspace(1))
You can’t perform that action at this time.
0 commit comments