https://bugs.llvm.org/show_bug.cgi?id=46759

            Bug ID: 46759
           Summary: frame_layout in test-suite fails if compiled with
                    -fstack-clash-protection on powerpc64le machine
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: lk...@cn.ibm.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

llvm-test-suite compiled with CFLAGS="-fstack-clash-protection"
CXX="-fstack-clash-protection" on a powerpc64le machine, test
```
MultiSource/UnitTests/C++11/frame_layout/frame_layout.test
```
fails.

Reduced IR
```
; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename =
"../../MultiSource/UnitTests/C++11/frame_layout/frame_layout.cpp"
target datalayout = "e-m:e-i64:64-n32:64"
target triple = "powerpc64le-unknown-linux-gnu"

$_Z10test_frameILj4096ELb1ELj2048ELb0ELb0EJEEvDpT4_jPKcP13trace_elementd =
comdat any

define dso_local void
@_Z10test_frameILj4096ELb1ELj2048ELb0ELb0EJEEvDpT4_jPKcP13trace_elementd(i32
%vla_size) local_unnamed_addr #0 comdat {
entry:
  %0 = zext i32 %vla_size to i64
  %vla = alloca i8, i64 %0, align 2048
  %1 = load volatile i8, i8* %vla, align 2048
  ret void
}

attributes #0 = { "probe-stack"="inline-asm" }
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to