brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 227ab19 Raw
32 lines · plain
1; RUN: llvm-as < %s | llvm-dis > %t1.ll2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll3; RUN: diff %t1.ll %t2.ll4 5; This testcase is primarily used for testing that global values can be used as 6; constant pointer initializers.  This is tricky because they can be forward7; declared and involves an icky bytecode encoding.  There is no meaningful 8; optimization that can be performed on this file, it is just here to test 9; assembly and disassembly.10;11 12 13@t3 = global ptr @t1           ;; Forward reference14@t1 = global i32 415@t4 = global ptr @t3		 ;; reference to reference16 17@t2 = global ptr @t118 19@0 = global ptr @2                ;; Forward numeric reference20@1 = global ptr @2                ;; Duplicate forward numeric reference21@2 = global float 0.022@3 = global ptr @2                ;; Numeric reference23 24 25@fptr = global ptr @f       ;; Forward ref method defn26declare void @f()               ;; External method27 28@sptr1   = global ptr @somestr		;; Forward ref to a constant29@somestr = constant [11x i8] c"hello world"30@sptr2   = global ptr @somestr31 32