Skip to content

Instantly share code, notes, and snippets.

View iains's full-sized avatar

Iain Sandoe iains

  • UK
View GitHub Profile
@iains
iains / gist:b306d3a02b6581fd7ca6
Created September 1, 2014 16:27
ppcfp128 codegen for powerpc trunk clang/llvm
extern long double bar (long double);
void foo (long double x)
{
long double y = x + 1L;
y = bar (y);
}
===
@iains
iains / gist:d9547ead09059a64921e
Created September 2, 2014 18:51
about debug-frames: two msp430 patches.
diff --git a/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCAsmInfo.cpp b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCAsmInfo.cpp
index df1aa1a..844db93 100644
--- a/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCAsmInfo.cpp
+++ b/llvm/lib/Target/MSP430/MCTargetDesc/MSP430MCAsmInfo.cpp
@@ -24,4 +24,6 @@ MSP430MCAsmInfo::MSP430MCAsmInfo(StringRef TT) {
AlignmentIsInBytes = false;
UsesELFSectionDirectiveForBSS = true;
+
+ SupportsDebugInformation = true;
enum rs6000_abi {
ABI_ELFv2,
ABI_DARWIN
};
struct gcc_options
{
long long x_rs6000_isa_flags;
int x_rs6000_altivec_abi;
@iains
iains / ppc-additions.patch
Created December 9, 2016 18:47
darwin-3.9 compiler-rt additions
From 926c259ac8366d9cece624e5523fdd577508b269 Mon Sep 17 00:00:00 2001
From: Iain Sandoe <iain@codesourcery.com>
Date: Fri, 29 Apr 2016 12:38:07 +0100
Subject: [PATCH] [compiler-rt,cmake] Main chunks to add PPC to compiler-rt
---
compiler-rt/cmake/config-ix.cmake | 19 +++--
compiler-rt/lib/builtins/CMakeLists.txt | 16 ++++
.../lib/builtins/Darwin-excludes/10.4-ppc.txt | 88 ++++++++++++++++++++++
.../lib/builtins/Darwin-excludes/10.5-ppc.txt | 88 ++++++++++++++++++++++
@iains
iains / gist:3b2e074d65263cd4be456c36839823d1
Created January 26, 2017 20:33
work-around for missing long double const expressions on GCC/PPC
From: Iain Sandoe <iain@codesourcery.com>
Date: Sat, 11 Apr 2015 19:58:48 +0100
Subject: [PATCH] Fix up thread constexpr for GCC where the PPC port can't do
long long constexpr.
---
libcxx/include/thread | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libcxx/include/thread b/libcxx/include/thread
@iains
iains / gist:84f610447e224dbaae3ff6cd412c8d7c
Last active August 16, 2018 11:20
trivial __m128 test-case
#include <xmmintrin.h>
__m128 x;
__m128 foo( __m128 bar)
{
return bar + x;
}
@iains
iains / gist:e065a20211613df370f8f778900685d8
Created November 21, 2018 14:28
gcc-runtest-site.exp
global target_list
global boards_dir
set boards_dir "/source/dejagnu-boards"
case "$target_triplet" in {
{ "*-*-darwin9*" } {
set target_list { "unix{-m32,-m64}" }
}
{ "i686-*-darwin10*" } {
@iains
iains / gist:02a91e82a4f4c82b265feb3d78857c3e
Created February 3, 2020 09:57
gcc_update, make a human readable REVISION.
--- contrib/gcc_update 2020-01-17 20:26:42.000000000 +0000
+++ /source/gcc_update 2020-01-18 21:04:50.000000000 +0000
@@ -323,15 +323,15 @@
exit 1
fi
- $GCC_GIT pull ${silent+-q} --rebase ${1+"$@"}
+ $GCC_GIT pull ${silent+-q} --ff-only ${1+"$@"}
if [ $? -ne 0 ]; then
(touch_files_reexec)
from t032 (test 14)
struct empty_base {};
struct S14 : public empty_base { unsigned long long int a[2]; } ;
struct S14 s14;
extern struct S14 a14[5];
======
@iains
iains / gist:edc649e1fd4fba696e5fc1bd6d6187d3
Last active November 26, 2020 10:17
DEJAGNU points to this
global target_list
global tool_timeout
global boards_dir
set boards_dir "/source/dejagnu-boards"
case "$target_triplet" in {
{ "sparc*-*-solaris2*" } {
set target_list { "unix{,-m64}" }
}