Skip to content

Commit d7b2b37

Browse files
authored
update CIs (#30)
1 parent 117526e commit d7b2b37

4 files changed

Lines changed: 33 additions & 71 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ os:
77
language: d
88

99
d:
10-
# - dmd-2.071.2
11-
- ldc-1.1.0-beta2
10+
- dmd
11+
- ldc
1212

1313
env:
1414
- ARCH="x86_64"
1515

1616
matrix:
1717
include:
1818
# - {os: linux, d: dmd-2.071.2, env: ARCH="x86", addons: {apt: {packages: [[gcc-multilib]]}}}
19-
- {os: linux, d: ldc-1.1.0-beta2, env: ARCH="x86", addons: {apt: {packages: [[gcc-multilib]]}}}
19+
- {os: linux, d: ldc, env: ARCH="x86", addons: {apt: {packages: [[gcc-multilib]]}}}
2020
- {os: linux, d: gdc, env: ARCH="x86_64"}
2121

2222
branches:

appveyor.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ platform: x64
22
environment:
33
matrix:
44
- DC: dmd
5-
DVersion: 2.072.0
5+
DVersion: 2.074.0
66
arch: x64
77
- DC: dmd
8-
DVersion: 2.072.0
8+
DVersion: 2.074.0
99
arch: x86
1010
- DC: ldc
11-
DVersion: '1.1.0-beta2'
11+
DVersion: '1.3.0-beta1'
1212
arch: x64
1313

1414
skip_tags: true

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
machine:
22
environment:
3-
DMD: 2.072.0
3+
DMD: 2.074.0
44
DUB: 1.0.0
55
PATH: "${HOME}/dmd2/linux/bin64:${PATH}"
66
LD_LIBRARY_PATH: "${HOME}/dmd2/linux/lib64:${LD_LIBRARY_PATH}"

source/cpuid/x86_any.d

Lines changed: 26 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ Params:
523523
eax = function id
524524
ecx = sub-function id
525525
+/
526-
pure nothrow @nogc
526+
pure nothrow @nogc @trusted
527527
CpuInfo _cpuid()(uint eax, uint ecx = 0)
528528
{
529529
uint a = void;
@@ -532,77 +532,39 @@ CpuInfo _cpuid()(uint eax, uint ecx = 0)
532532
uint d = void;
533533
version(LDC)
534534
{
535-
// @@@FIXME@@@
536-
// https://github.com/ldc-developers/ldc/issues/1823
537-
version(Windows)
538-
{
539-
asm pure nothrow @nogc
540-
{
541-
mov EAX, eax;
542-
mov ECX, ecx;
543-
cpuid;
544-
mov a, EAX;
545-
mov b, EBX;
546-
mov c, ECX;
547-
mov d, EDX;
548-
}
549-
}
550-
else
551-
// @@@FIXME@@@
552-
// https://github.com/ldc-developers/ldc/issues/1823
553-
version(X86)
554-
{
555-
asm pure nothrow @nogc
556-
{
557-
mov EAX, eax;
558-
mov ECX, ecx;
559-
cpuid;
560-
mov a, EAX;
561-
mov b, EBX;
562-
mov c, ECX;
563-
mov d, EDX;
564-
}
565-
}
566-
else
567-
{
568-
pragma(inline, true);
569-
auto asmt = __asmtuple!
570-
(uint, uint, uint, uint) (
571-
"cpuid",
572-
"={eax},={ebx},={ecx},={edx},{eax},{ecx}",
573-
eax, ecx);
574-
a = asmt.v[0];
575-
b = asmt.v[1];
576-
c = asmt.v[2];
577-
d = asmt.v[3];
578-
}
535+
pragma(inline, true);
536+
auto asmt = __asmtuple!
537+
(uint, uint, uint, uint) (
538+
"cpuid",
539+
"={eax},={ebx},={ecx},={edx},{eax},{ecx}",
540+
eax, ecx);
541+
a = asmt.v[0];
542+
b = asmt.v[1];
543+
c = asmt.v[2];
544+
d = asmt.v[3];
579545
}
580546
else
581547
version(GNU)
548+
asm pure nothrow @nogc
582549
{
583-
asm pure nothrow @nogc
584-
{
585-
"cpuid" :
586-
"=a" a,
587-
"=b" b,
588-
"=c" c,
589-
"=d" d,
590-
: "a" eax, "c" ecx;
591-
}
550+
"cpuid" :
551+
"=a" a,
552+
"=b" b,
553+
"=c" c,
554+
"=d" d,
555+
: "a" eax, "c" ecx;
592556
}
593557
else
594558
version(InlineAsm_X86_Any)
559+
asm pure nothrow @nogc
595560
{
596-
asm pure nothrow @nogc
597-
{
598-
mov EAX, eax;
599-
mov ECX, ecx;
600-
cpuid;
601-
mov a, EAX;
602-
mov b, EBX;
603-
mov c, ECX;
604-
mov d, EDX;
605-
}
561+
mov EAX, eax;
562+
mov ECX, ecx;
563+
cpuid;
564+
mov a, EAX;
565+
mov b, EBX;
566+
mov c, ECX;
567+
mov d, EDX;
606568
}
607569
else static assert(0);
608570
return CpuInfo(a, b, c, d);

0 commit comments

Comments
 (0)