brintos

brintos / llvm-project-archived public Read only

0
0
Text · 695 B · e009512 Raw
23 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; Check that -mgpopt doesn't crash on unsized externals3; RUN: llc -mtriple=mips64-unknown-freebsd -mattr=+noabicalls -target-abi n64 -mgpopt -o - %s | FileCheck %s4 5%struct.a = type opaque6 7@b = external global %struct.a, align 18 9; Function Attrs: norecurse nounwind readnone10define ptr @d() {11; CHECK-LABEL: d:12; CHECK:       # %bb.0: # %entry13; CHECK-NEXT:    lui $1, %highest(b)14; CHECK-NEXT:    daddiu $1, $1, %higher(b)15; CHECK-NEXT:    dsll $1, $1, 1616; CHECK-NEXT:    daddiu $1, $1, %hi(b)17; CHECK-NEXT:    dsll $1, $1, 1618; CHECK-NEXT:    jr $ra19; CHECK-NEXT:    daddiu $2, $1, %lo(b)20entry:21  ret ptr @b22}23