File: more-no-m64

package info (click to toggle)
cbmc 6.6.0-4
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 153,852 kB
  • sloc: cpp: 386,459; ansic: 114,466; java: 28,405; python: 6,003; yacc: 4,552; makefile: 4,041; lex: 2,487; xml: 2,388; sh: 2,050; perl: 557; pascal: 184; javascript: 163; ada: 36
file content (63 lines) | stat: -rw-r--r-- 2,131 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Description: -m64 is not portable
 Use preprocessed file only.
 .
 cbmc (5.84.0-4) unstable; urgency=low
 .
   * Fix portability problems
Author: Michael Tautschnig <mt@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2023-06-13

Index: cbmc-5.84.0/regression/cbmc-library/__asm_fstcw-01/msvc.c
===================================================================
--- cbmc-5.84.0.orig/regression/cbmc-library/__asm_fstcw-01/msvc.c
+++ /dev/null
@@ -1,10 +0,0 @@
-int main()
-{
-  unsigned short cw;
-  __asm { fstcw cw; }
-  __CPROVER_assert((cw & 0xc00) == 0, "default rounding mode");
-  // fesetround(FE_UPWARD);
-  __CPROVER_rounding_mode = 2;
-  __asm { fstcw cw; }
-  __CPROVER_assert((cw & 0xc00) == 0x800, "round upwards");
-}
Index: cbmc-5.84.0/regression/cbmc-library/__asm_fstcw-01/msvc.desc
===================================================================
--- cbmc-5.84.0.orig/regression/cbmc-library/__asm_fstcw-01/msvc.desc
+++ cbmc-5.84.0/regression/cbmc-library/__asm_fstcw-01/msvc.desc
@@ -1,5 +1,5 @@
-CORE
-msvc.c
+KNOWNBUG
+msvc.i
 --pointer-check --bounds-check --winx64
 ^EXIT=0$
 ^SIGNAL=0$
Index: cbmc-5.84.0/regression/cbmc-library/__asm_fstcw-01/msvc.i
===================================================================
--- /dev/null
+++ cbmc-5.84.0/regression/cbmc-library/__asm_fstcw-01/msvc.i
@@ -0,0 +1,10 @@
+int main()
+{
+  unsigned short cw;
+  __asm { fstcw cw; }
+  __CPROVER_assert((cw & 0xc00) == 0, "default rounding mode");
+  // fesetround(FE_UPWARD);
+  __CPROVER_rounding_mode = 2;
+  __asm { fstcw cw; }
+  __CPROVER_assert((cw & 0xc00) == 0x800, "round upwards");
+}